package com.songlanyun.modules.marketing.groupbuy.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.songlanyun.modules.marketing.groupbuy.entity.GroupBuyActivity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * 拼团活动
 *
 * @author Mark
 * @email sunlightcs@gmail.com
 * @date 2020-11-27 14:03:39
 */
@Mapper
public interface GroupBuyActivityDao extends BaseMapper<GroupBuyActivity> {

    IPage<GroupBuyActivity> groupBuyPage(IPage<GroupBuyActivity> page, @Param("vo") Map<String, Object> params);

    GroupBuyActivity getNowShopActivity(Long shopId);

    int verifyGroupBuyActivity(GroupBuyActivity activity);

    GroupBuyActivity getNow();

}
